
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObject;
using DataAccessLayer;

namespace BusinessLogic
{
    /// <summary>
    /// Define ChiTietPhieuChuyenKhoUtil class. This class user for BussinessLayer.

    /// </summary>
    public class ChiTietPhieuChuyenKhoUtil
    {
        /// <summary>
        /// Define function Insert for ChiTietPhieuChuyenKho Object.
        /// </summary>
        /// <param name="t">object data need Insert.</param>
        /// <returns>
        ///    True: if insert successfull.
        ///    False: if insert error.
        ///</returns>
        public static bool Insert(ChiTietPhieuChuyenKho t)
        {

            return ChiTietPhieuChuyenKhoDao.Insert(t);
        }
        /// <summary>
        /// Define function Update for ChiTietPhieuChuyenKho Object.
        /// </summary>
        /// <param name="t">project data need updated.</param>
        /// <returns>
        ///    True: if update successful.
        ///    False: if update Error.
        ///</returns>
        public static bool Update(ChiTietPhieuChuyenKho t)
        {

            return ChiTietPhieuChuyenKhoDao.Update(t);
        }
        /// <summary>
        /// Get All ChiTietPhieuChuyenKho object from table ChiTietPhieuChuyenKho.
        /// </summary>
        /// <returns>List ChiTietPhieuChuyenKho object.</returns>
        public static List<ChiTietPhieuChuyenKhoResult> GetAll()
        {
            return ChiTietPhieuChuyenKhoDao.GetAll();
        }
        /// <summary>
        /// Search ChiTietPhieuChuyenKho object in table ChiTietPhieuChuyenKho.
        /// </summary>
        /// <param name="t">Condition for Search.</param>

        /// <returns>List ChiTietPhieuChuyenKhoResult objects.</returns>

        public static List<ChiTietPhieuChuyenKhoResult> SearchChiTietPhieuChuyenKhoSomeCondition(ChiTietPhieuChuyenKho t)
        {
            return ChiTietPhieuChuyenKhoDao.SearchChiTietPhieuChuyenKhoSomeCondition(t);
        }
        /// <summary>
        /// Get a ChiTietPhieuChuyenKho data object by primary key. 
        /// </summary>
        /// <param name="maPhieuPhieuChuyenKho" >This is primary key.</param>
        /// <param name="maMatHang" >This is primary key.</param>
        /// <returns>A ChiTietPhieuChuyenKho object.</returns>

        public static ChiTietPhieuChuyenKho Get(int maPhieuPhieuChuyenKho, string maMatHang)
        {
            return ChiTietPhieuChuyenKhoDao.Get(maPhieuPhieuChuyenKho, maMatHang);
        }
        /// <summary>
        /// This function to Delete ChiTietPhieuChuyenKho object by primary key.
        /// </summary>
        /// <param name="maPhieuPhieuChuyenKho" >This is primary key.</param>
        /// <param name="maMatHang" >This is primary key.</param>
        /// <returns>If succesful return True else  return False.</returns>

        public static bool Delete(int maPhieuPhieuChuyenKho, string maMatHang)
        {

            return ChiTietPhieuChuyenKhoDao.Delete(maPhieuPhieuChuyenKho, maMatHang);
        }
    }
}